import request from '@/utils/request'

export const createOrders = (courseId,memberId) => {
  return request({
    url:`eduorder/order/createOrder/${courseId}/${memberId}`,
    method:'post'
  })
}

export const getOrdersInfo = (data) => {
  return request({
    url:`eduorder/order/getOrderInfo/${data}`,
    method:'get'
  })
}

export const createNatvie = (data) => {
  return request({
    url:`eduorder/paylog/createNative/${data}`,
    method:'get'
  })
}

export const queryPayStatus = (data) => {
  return request({
    url:`eduorder/paylog/queryPayStatus/${data}`,
    method:'get'
  })
}



export default { createOrders, getOrdersInfo, createNatvie, queryPayStatus }